import { registerAs } from "@nestjs/config";

export default registerAs('database',()=>{
    return {
        host:process.env.DATABASE_HOST,
        port:process.env.DATABASE_PORT,
        username:process.env.DATABASE_USER,
        password:process.env.DATABASE_PASSWORD,
        database:process.env.DATABASE || 'nest-server',
    }
})